/* 出库单
 */

import { postRequest, getRequest, getDownload} from '@/lib/axios'

export const outOrderApi = {
  // 出库单列表
  queryOutOrderList: (param) => {
    return getRequest('/out_order/list', param)
  },
  // 出库单详情
  detail: (param) => {
    return getRequest('/out_order/detail', param)
  },
  // 出库单导出
  exportXlsx: (param) => {
    return getDownload('/out_order/exportXlsx', param)
  },
  // 出库单
  queryOrderConfirm: (data) => {
    return postRequest('/out_order/confirm', data)
  },
  // 调拨出库单列表-生成拣货单
  pickTransferOrder: (param) => {
    return postRequest('/transfer_order/pick', param)
  },
  // 调拨出库单列表-签收
  signTransferOrder: (param) => {
    return postRequest('/transfer_order/sign', param)
  }
}
